<template>
  <div>
    <h1>{{ title }}</h1>
    <Demo1 @changeRoute="clickEven"/>
  </div>
</template>
<script setup>
import Demo1 from "./Demo1.vue"
import {ref} from "vue"
const title = ref("parent-title")
const clickEven = (val) => {
  title.value = val
}
</script>